<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.cnhis.cloudhealth.commons.utils.PropDynamicCfg"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">

	//session对象
	var bce01 = "<%=request.getSession().getAttribute("employeeId")%>";
	var loginName = "<%=request.getSession().getAttribute("loginName")%>";
	var userId = "<%=request.getSession().getAttribute("userId")%>";
	var userid = "<%=request.getSession().getAttribute("userId")%>";
	var jsessionids = "<%=request.getSession().getAttribute("jsessionids")%>";

  //门诊医生--
  var  ipAdress="http://<%=request.getServerName()%>";
  var  rootUrl=ipAdress+":<%=request.getServerPort()%><%=request.getContextPath()%>/cloud";
  var  myurl=ipAdress+":<%=request.getServerPort()%><%=request.getContextPath()%>/comment";
  var  hostWebUrl=ipAdress+":<%=request.getServerPort()%>/cloudcontrolcenterweb";
  var  imgAdress="http://<%=request.getServerName()%>:<%=request.getServerPort()%>";
  
  //电子病历
  var  dzbl = "<%=PropDynamicCfg.get("emrUrl")%>";
  var  dzbl_cloud = dzbl+"/cloud";
  
  //控制中心
  var centerRUI1="<%=PropDynamicCfg.get("centerurl")%>";
  var centerRUI= centerRUI1+"/cloud";
  var  kzzxUrl = centerRUI;
</script>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="shortcut icon" href="${ctx}/theme/img/favicon.ico" type="image/x-icon"/>
		<link href="${ctx}/lib/bootstrap-3.3.5-dist/css/bootstrap.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="${ctx}/css.base/spring-frame.css"/>
		<link rel="stylesheet" href="${ctx}/lib/toastr/css/toastr.css" />	
		<!-- <link rel="stylesheet" type="text/css" href="css/frame/spring-frame.css"/> -->
		<link rel="stylesheet" type="text/css" href="${ctx}/css.base/classic-frame.css"/>	
		<link rel="stylesheet" href="${ctx}/css.base/common.css" />	
		<link rel="stylesheet" href="${ctx}/comment/css/load.css" />	
		<title></title>
	</head>
	<body>
	<input id="num" type="hidden" value="${num}"/>
		<div id="container">	
				<div class="content">
						<!--头部开始-->
						<div class="content-header">	
							<div class="head-lf">
								<span class="load-logo-img1"></span>								
							</div>
							<div class="head-rt">
								<a href="" class="head-home">设为首页 </a>
								<a href="" class="head-start"> 加入收藏</a>
							</div> 
						</div>
						<!--头部结束-->
						<!--中间主体开始-->
						<div class="content-body">
							<div class="content-body-main load-bg-img1">
								<div class="content-body-form">
									<div class="load-head"><span>登</span><span></span><span>录</span></div>
									<div class="load-body">
										<form action="">
											<div class="load-row">
												<input type="text" placeholder="用户名" class="load-input load-user form-input" value="用户名" id="loginName" onfocus="this.value=''" onblur="if(this.value==''){this.value='用户名'}"/>
											</div>
											<div class="load-row">
												<input type="password" placeholder="密码"  class="load-input load-pwd form-input" value="密　码" id="password" onfocus="this.value=''" onblur="if(this.value==''){this.value='密　码'}"/>
											</div>
											<div class="load-row load-check">
												<input type="text" placeholder="验证码" style="display:inline-block;" value="验证码" class="load-test form-input" id="code" onfocus="this.value=''" onblur="if(this.value==''){this.value='验证码'}"/> <span>
                                				<img id="Verify_codeImag" width="85" height="35" onclick="refreshCheckCode()" style="cursor: pointer;" title="点击切换验证码" alt="点击切换验证码" /></span>
											</div>											
											<div class="load-row load-check">
												<label class="lf" id="check-label"><span class="checked" id="check-box"></span>下次自动登录</label>
												<a href="" class="rt red" > 忘记密码？</a>
											</div>
											<div class="load-row">
												<div id="login" class="load-input   load-sub">
													<span>登</span><span></span><span>录</span>
												</div>
											</div>
										</form>
									</div>	
								</div>
							</div>							
						</div>
						<!--中间主体结束-->						
				</div>		
			<!--脚部开始-->
				<footer class="content-footer">
					<span><span>Copyright &copy;</span>深圳坐标软件</span>
					<span>版权所有</span>
				</footer>		
			<!--脚部结束-->
		</div>	
		<input type="hidden" id="randomcode" name="randomcode"/>			
	</body>
	
	<!-- <script src="outFrame/jquery/jquery-2.1.4.js"></script>
	<script src="outFrame/bootstrap/js/bootstrap.js"></script> -->
	
	<!-- 登录存储 -->
	<script src="${ctx}/js.base/jquery-1.11.3.js" ></script>
	<script src="${ctx}/lib/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    <script src="${ctx}/js.base/jquery.cookie.js" charset="utf-8"></script>
	<script src="${ctx}/lib/toastr/js/toastr.min.js"></script>
	<script src="${ctx}/js.base/frame.js"></script>	
	<script src="${ctx}/comment/js.base/load.js"></script>
	
	
	<script type="text/javascript">

		function addBookmark(title,url) { 

		if (window.sidebar) { 

		window.sidebar.addPanel(title, url,""); 

		} else if( document.all ) { 

		window.external.AddFavorite( url, title); 

		} else if( window.opera && window.print ) { 

		return true; 

		} 

		} 

		function setHome() 

		{ 
        var url = window.location.href;
		if (document.all){ 

		document.body.style.behavior='url(#default#homepage)'; 

		document.body.setHomePage(url); 

		}else if (window.sidebar){ 

		if(window.netscape){ 

		try{ 

		netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 

		}catch (e){ 

		toastr.error( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );

		} 

		} 

		if(window.confirm("你确定要设置"+url+"为首页吗？")==1){ 

		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); 

		prefs.setCharPref('browser.startup.homepage',url); 

		} 

		} 

		} 

		</script>	
</html>

